home *** CD-ROM | disk | FTP | other *** search
- Path: news.mindspring.com!chmood
- From: chmood@photobooks.atdc.gatech.edu (Charlie Moody)
- Newsgroups: comp.sys.amiga.misc
- Subject: Re: AmigaOS 4.x features
- Date: 12 Apr 1996 02:29:20 GMT
- Organization: Photobooks Inc
- Message-ID: <4kkf60$268e@mule1.mindspring.com>
- References: <4j7ein$a6v@B1FF.mindspring.com> <4jfm8i$b5n@B1FF.mindspring.com> <4jgc6q$a61@reuter.cse.ogi.edu> <4jkg5j$dva@B1FF.mindspring.com> <4jl6pr$knv@reuter.cse.ogi.edu>
- NNTP-Posting-Host: photobooks.atdc.gatech.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- On 31 Mar 1996 05:56:11 GMT, Tony Leneis wrote:
- : In article <4jkg5j$dva@B1FF.mindspring.com>,
- : Charlie Moody <chmood@photobooks.atdc.gatech.edu> wrote:
- : >On 29 Mar 1996 09:57:46 GMT, Tony Leneis wrote:
- : >
- : >It may be *as* powerful, but not moreso (and what the heck is 'UNIX
- : >globbing'?), and certainly not as well thought out....
-
- : First, globbing is filename wildcarding. Since some UNIX programs
- : do regexp patterns and others do glob patterns, you need to make the
- : distinction. When I say that the Amiga pattern
- : matching is more powerful than globbing, I mean there are patterns that
- : Amiga pattern matching can express which globbing cannot. For example:
-
- : test#a <- Matches 'test', 'testa', 'testaa', 'testaaa', etc.
-
- test*a <- Matches 'test', 'testa', 'testaa', 'testaaa', etc.
-
-
- : test#(ab)c <- Matches 'testc', 'testabc', 'testababc', 'testabababc', etc.
-
- Ya got me on this one...but do you (does anyone) *really* use such
- screwball naming conventions?
-
-
- : On the other hand, there are no UNIX globbing patterns which cannot be
- : expressed as an Amiga pattern. Hence, Amiga patterns are more powerful.
-
- It's afloor wax! It's a breath mint! It's BOTH!!! As I said...
- : >Yes, I can get the same effect as in can under unix pattern-matching...all
- : >I have to do is use a completely different, much more cumbersome, and much
- : >less intuitive (read: badly designed) method.
-
- Please understand: it's not my intention to insult my own machine
- (currently a much-upgraded 2000, replacing my grey-bearded 1000, which is
- now sunning itself in the back 40); my comments were directed at making
- the *CLI* more flexible/convenient. File globbing or not, I have always
- found the standard Amiga pattern-matching to be less simple, less
- intuitive, and hence less useful when moving bunches of files around
- (which I do...a lot....).
-
- : Would you have preferred the standard UNIX regular expression
- : syntax? Then you'd have to type '.*' instead of '#?', and you'd have to
- : remember to escape the '.' whenever you didn't want it to act as the Amiga
- : '?' metacharacter. (Kind of a bummer if you're looking for '#?.c', or should
- : I say '.*\.c' as a UNIX regular expression.)
-
- ??? I've never encountered such a thing as you seem to be describing,
- from System III thru the current (Vr4?). Certainly I've never had to
- jump thru *these* hoops on a unix box.
-
-
- : As mentioned above, it is more flexible and more powerful, because anything
- : that can be expressed as a UNIX glob pattern can be expressed as an Amiga
- : pattern, and then some.
-
- ...And I can use my trusty Western Electric telephone as a hammer in a
- pinch, too (not to mention a boat anchor!); that doesn't make it a good
- hammer, nor does this 'dual function' make it more powerful than either
- my Panasonic phone (which is a lousy hammer) or my Stanley hammer (which
- is an even worse phone).
-
- Or, to quote some old fart: "It's not that the bear sings well: it's
- that the bear sings at all." Or another: "Use the right tool for the job."
-
- : Just out of curiosity, whose wheel should they have
- : used instead of inventing their own? As far as I know, there was no RFC or
- : other standard for file wildcarding when AmigaDOS was developed. Which UNIX
- : shell should they have followed?
-
- This is just a *bit* disingenuous, doncha think? Do you believe standards
- grow on RFC's? Taking what works and improving it is a time-honored way
- of making progress.
-
-
- : >: For example, "dir sys:(a|b|c|e)#?".
- : >
- : >[additional references to documentation for more counter-intuitive,]
- : >[anti-logical methods deleted]
- : >
- : > dir sys:[a-e]*
- : >
- : >Logical, simple, fast: elegant.
-
- : Well, you can certainly do it with a current version of AmigaDOS.
- : So, what's the problem? One minor nit - that should be 'dir sys:[a-ce]*'
- : if you want it to be the same as the 1.3 AmigaDOS pattern matching example
- : above.
-
- You're right: I've got 3.1 in, and there is a reasonable approximation
- of this available to me now...so, no problem, obviously. As for your
- "minor nit" above: I must have been dazzled by the crisp, clear, and
- simple style of your example. Pardon my oversight; perhaps you could
- supply me w/ page numbers for the manual wherein all this clarity is
- explained.
-
-
- : >; The main problem,
- : >: if you want to call it a problem, is that it's different. It also can be a
- : >: little more awkward to use for certain patterns, but it always can get the
- : >: job done.
- : >
- : >The fact that the kludge can be worked around does nothing to redeem the
- : >kludge. It's still bad design with no significant benefit from making
- : >the sacrifices, and it should be thrown overboard at the first opportunity.
-
- : It's not a kludge, and there's nothing wrong with the design. It is much
- : more useful than MS-DOS or UNIX globbing. If I wanted that, I'd just run
- : Linux or CrossPC on my Amiga.
-
- Much more useful FOR WHAT? I say it's not more useful, in my experience,
- for moving masses of files around from the command line, because in my
- experience it's *not* more useful. It may be just the thing for
- complementing complex scripted functions, but I don't care, really. If I
- wanted to do enough studying to master that art, I'd tackle perl, or Python.
-
- Granted, I was working on unix boxes long before I got my 1000, and I'm
- *used* to doing certain things w/ the cli; for me, it seems that the
- unix command line was designed as a primary interface, and the Amiga cli
- does not improve on it, and doesn't even equal it, in ease of common
- use. I've managed to avoid MooseDOS for most of my career, and I'm very
- pleased about that; and I don't *want* to run Linux or whatever: I
- *like* my machine!
-
-
- *sigh* This wasn't meant to be a fight; and as you say, the
- functionality I asked for is substantially available to me now on my
- Amiga, so this really is a moot point.
-
-
- : Throwing the Amiga pattern matching overboard would not only reduce the power
- : of AmigaDOS, it would also reduce the power of editors and other applicaitons
- : and utilities that allow you to do pattern matching.
-
- I'll take your word for it....
-
-
-